import java.util.Scanner;

public class Ex6_3{
	public static void main(String[] args){
		Scanner input = new Scanner(System.in);
		int[] num = new int[100];
		System.out.print("Enter integets between 1 and 100: ");
		int n = input.nextInt();
		while (n != 0){
			num[n-1]++;
			n = input.nextInt();
		}
		for (int i = 0; i < num.length; i++){
			if (num[i] != 0)
				System.out.printf("%d occurs %d time%s\n", i+1, num[i],
								num[i] == 1 ? "" : "s");
		}
	}
}